package com.hanxiaozhang.config;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;


/**
 * 〈一句话功能简述〉<br>
 * 〈生成代码配置信息〉
 *
 * @author hanxinghua
 * @create 2021/4/25
 * @since 1.0.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ConfigurationProperties(prefix = "hanxiaozhang.generator")
public class GeneratorProperties {

    /**
     * 作者姓名
     */
    private String author;

    /**
     * 邮箱
     */
    private String email;


    /**
     * 版本
     */
    private String since = "1.0.0";

    /**
     * 表前缀
     */
    private String tablePrefix;


    /**
     * 去除表前缀
     */
    private Boolean removeTablePrefix = true;


    /**
     * 包路径
     */
    private String packagePath= "com.hanxiaozhang";


    /**
     * 数据库对应java类型
     */
    private Map<String,String> dbToJavaType;


}
